/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.maze.display;

import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.maze.Maze;
import org.maze.individual.Individual;

/**
 *
 * @author Thomas
 */
public abstract class AbstractDisplay implements IDisplay{
    protected Individual fitest;
    protected int generation;
    protected double average;
    protected double diversity;
    protected ArrayList<Integer> path;

    public void setPath(ArrayList<Integer> path) {
        this.path=(ArrayList<Integer>) path.clone();
    }

    public void setFitest(Individual ind) {
        try {
            this.fitest = (Individual) ind.clone();
        } catch (CloneNotSupportedException ex) {
            Logger.getLogger(AbstractDisplay.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public void setGeneration(int generation) {
        this.generation = generation;
    }

    public void setAverage(double average) {
        this.average=average;
    }

    public void setDiversity(double diversity) {
        this.diversity=diversity;
    }
}
